﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200120F RID: 4623
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartCocoonStageCsReq : IMessage<StartCocoonStageCsReq>, IMessage, IEquatable<StartCocoonStageCsReq>, IDeepCloneable<StartCocoonStageCsReq>, IBufferMessage
	{
		// Token: 0x17003A8F RID: 14991
		// (get) Token: 0x0600CF2B RID: 53035 RVA: 0x0022DF99 File Offset: 0x0022C199
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartCocoonStageCsReq> Parser
		{
			get
			{
				return StartCocoonStageCsReq._parser;
			}
		}

		// Token: 0x17003A90 RID: 14992
		// (get) Token: 0x0600CF2C RID: 53036 RVA: 0x0022DFA0 File Offset: 0x0022C1A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartCocoonStageCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A91 RID: 14993
		// (get) Token: 0x0600CF2D RID: 53037 RVA: 0x0022DFB2 File Offset: 0x0022C1B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartCocoonStageCsReq.Descriptor;
			}
		}

		// Token: 0x0600CF2E RID: 53038 RVA: 0x0022DFB9 File Offset: 0x0022C1B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartCocoonStageCsReq()
		{
		}

		// Token: 0x0600CF2F RID: 53039 RVA: 0x0022DFC4 File Offset: 0x0022C1C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartCocoonStageCsReq(StartCocoonStageCsReq other) : this()
		{
			this.propEntityId_ = other.propEntityId_;
			this.worldLevel_ = other.worldLevel_;
			this.wave_ = other.wave_;
			this.cocoonId_ = other.cocoonId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CF30 RID: 53040 RVA: 0x0022E018 File Offset: 0x0022C218
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartCocoonStageCsReq Clone()
		{
			return new StartCocoonStageCsReq(this);
		}

		// Token: 0x17003A92 RID: 14994
		// (get) Token: 0x0600CF31 RID: 53041 RVA: 0x0022E020 File Offset: 0x0022C220
		// (set) Token: 0x0600CF32 RID: 53042 RVA: 0x0022E028 File Offset: 0x0022C228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PropEntityId
		{
			get
			{
				return this.propEntityId_;
			}
			set
			{
				this.propEntityId_ = value;
			}
		}

		// Token: 0x17003A93 RID: 14995
		// (get) Token: 0x0600CF33 RID: 53043 RVA: 0x0022E031 File Offset: 0x0022C231
		// (set) Token: 0x0600CF34 RID: 53044 RVA: 0x0022E039 File Offset: 0x0022C239
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x17003A94 RID: 14996
		// (get) Token: 0x0600CF35 RID: 53045 RVA: 0x0022E042 File Offset: 0x0022C242
		// (set) Token: 0x0600CF36 RID: 53046 RVA: 0x0022E04A File Offset: 0x0022C24A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Wave
		{
			get
			{
				return this.wave_;
			}
			set
			{
				this.wave_ = value;
			}
		}

		// Token: 0x17003A95 RID: 14997
		// (get) Token: 0x0600CF37 RID: 53047 RVA: 0x0022E053 File Offset: 0x0022C253
		// (set) Token: 0x0600CF38 RID: 53048 RVA: 0x0022E05B File Offset: 0x0022C25B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CocoonId
		{
			get
			{
				return this.cocoonId_;
			}
			set
			{
				this.cocoonId_ = value;
			}
		}

		// Token: 0x0600CF39 RID: 53049 RVA: 0x0022E064 File Offset: 0x0022C264
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartCocoonStageCsReq);
		}

		// Token: 0x0600CF3A RID: 53050 RVA: 0x0022E074 File Offset: 0x0022C274
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartCocoonStageCsReq other)
		{
			return other != null && (other == this || (this.PropEntityId == other.PropEntityId && this.WorldLevel == other.WorldLevel && this.Wave == other.Wave && this.CocoonId == other.CocoonId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CF3B RID: 53051 RVA: 0x0022E0E0 File Offset: 0x0022C2E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PropEntityId != 0U)
			{
				num ^= this.PropEntityId.GetHashCode();
			}
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this.Wave != 0U)
			{
				num ^= this.Wave.GetHashCode();
			}
			if (this.CocoonId != 0U)
			{
				num ^= this.CocoonId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CF3C RID: 53052 RVA: 0x0022E16A File Offset: 0x0022C36A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CF3D RID: 53053 RVA: 0x0022E172 File Offset: 0x0022C372
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CF3E RID: 53054 RVA: 0x0022E17C File Offset: 0x0022C37C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.CocoonId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.CocoonId);
			}
			if (this.PropEntityId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.PropEntityId);
			}
			if (this.Wave != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Wave);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CF3F RID: 53055 RVA: 0x0022E210 File Offset: 0x0022C410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PropEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PropEntityId);
			}
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this.Wave != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Wave);
			}
			if (this.CocoonId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CocoonId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CF40 RID: 53056 RVA: 0x0022E298 File Offset: 0x0022C498
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartCocoonStageCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PropEntityId != 0U)
			{
				this.PropEntityId = other.PropEntityId;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			if (other.Wave != 0U)
			{
				this.Wave = other.Wave;
			}
			if (other.CocoonId != 0U)
			{
				this.CocoonId = other.CocoonId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CF41 RID: 53057 RVA: 0x0022E310 File Offset: 0x0022C510
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CF42 RID: 53058 RVA: 0x0022E31C File Offset: 0x0022C51C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 16U)
					{
						this.WorldLevel = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						this.CocoonId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.PropEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.Wave = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400530D RID: 21261
		private static readonly MessageParser<StartCocoonStageCsReq> _parser = new MessageParser<StartCocoonStageCsReq>(() => new StartCocoonStageCsReq());

		// Token: 0x0400530E RID: 21262
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400530F RID: 21263
		public const int PropEntityIdFieldNumber = 7;

		// Token: 0x04005310 RID: 21264
		private uint propEntityId_;

		// Token: 0x04005311 RID: 21265
		public const int WorldLevelFieldNumber = 2;

		// Token: 0x04005312 RID: 21266
		private uint worldLevel_;

		// Token: 0x04005313 RID: 21267
		public const int WaveFieldNumber = 11;

		// Token: 0x04005314 RID: 21268
		private uint wave_;

		// Token: 0x04005315 RID: 21269
		public const int CocoonIdFieldNumber = 4;

		// Token: 0x04005316 RID: 21270
		private uint cocoonId_;
	}
}
